package com.youlu.campus.entity.english;

import com.youlu.campus.base.base.EntityBase;
import lombok.Data;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 用户参与报名答题获得证书
 */
@Data
@Document(collection = "userCompetitionQaCa")
@CompoundIndexes({
        @CompoundIndex(name = "competition_ca_comIdx",def = "{'userId':1,'activityGroupId':1,'caType':1," +
                "'caLevel':1}",unique = true)
})
public class UserCompetitionQaCa extends EntityBase {

    private String activityId;

    private String name;
    @Indexed
    private String userId;
    @Indexed
    private String activityGroupId;
    private String activityGroupName;
    private String mobile;

    private String universityId;

    private String universityName;

    private String certificateNo;

    private Double score;

    /**
     * 证书类型
     */
    private String caType;
    /**
     * 证书等级
     */
    @Indexed
    private String caLevel;

    @Transient
    private List<UserCompetitionQaCa> caTypeLevel;

    @Transient
    private String caTitle;

}
